﻿namespace etracks.EntityModels
{
    using System;

    public class _BaseEntityModel
    {
        public virtual void SetValuesFrom(object source)
        {
            throw new NotImplementedException();
        }
    }

    public enum BootstrapAlertStatus
    {
            //<p class="text-muted">...</p>
            //<p class="text-primary">...</p>
            //<p class="text-success">...</p>
            //<p class="text-info">...</p>
            //<p class="text-warning">...</p>
            //<p class="text-danger">...</p>
            muted,
            primary,
            success, 
            info, 
            warning,
            danger
    }

    public class BootstrapAlert
    {
        public BootstrapAlertStatus Status { get; set; }

        public string Message { get; set; }

        public static BootstrapAlert Info(string message)
        {
            return new BootstrapAlert
            {
                Status = BootstrapAlertStatus.info,
                Message = message
            };
        }

        public static BootstrapAlert Success(string message)
        {
            return new BootstrapAlert
            {
                Status = BootstrapAlertStatus.success,
                Message = message
            };
        }

        public static BootstrapAlert Warning(string message)
        {
            return new BootstrapAlert
            {
                Status = BootstrapAlertStatus.warning,
                Message = message
            };
        }

        public static BootstrapAlert Danger(string message)
        {
            return new BootstrapAlert
            {
                Status = BootstrapAlertStatus.danger,
                Message = message
            };
        }
    }
}

